package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.SysUserRole;

import java.util.List;

@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    void batchInsertUserRole(@Param("userId")Integer userId, @Param("ids")List<Integer> ids);
    void deleteRoleByUserId(Integer id);
    List<Integer> getRolesByUserId(Integer id);

}